<script>
  import {
    hasToken
  } from '@/utils/token.js'
  export default {
    onLaunch: function() {
      // console.log('App Launch')
    },
    onShow: function() {
      // console.log('App Show')
      wx.onAppRoute((res) => {
        // if (!hasToken()) this.autoLogin()
      })
    },
    onHide: function() {
      // console.log('App Hide')
    },
    methods: {
      autoLogin() {
        if (this.$refs['showSheet']) this.$refs['showSheet'].showSheet = true
      },
    }
  }
</script>

<style>
  /* uni-app中的条件判断语句 */
  /* #ifdef APP-PLUS  || H5 */
  uni-swiper .uni-swiper-dot {
    width: 10rpx;
    height: 4rpx;
  }

  uni-swiper .uni-swiper-dot-active {
    width: 40rpx;
    border-radius: 6rpx;
  }

  /* #endif */

  /* #ifdef MP-WEIXIN */
  wx-swiper .wx-swiper-dot {
    width: 12rpx;
    height: 12rpx;
  }

  wx-swiper .wx-swiper-dot-active {
    width: 15px;
    height: 12rpx;
    border-radius: 6rpx;
  }

  /* #endif */
</style>
